<?
	include('news.php');	
?>
<style type="text/css">
.a-main-content-wrapper_main-page-caselist .a-cell_1 .case-ul {
	margin-right:15px;
	float:right;
	width:730px;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .case-ul li {
	margin:0.5em 0px 0.5em;
}
.a-main-content-wrapper_main-page-caselist .a-cell h1 {
	/*margin-top:2px;*/
	cursor:default;
	float:left;
	display:inline-block;
	font-size:14px;
}
.a-main-content-wrapper_main-page-caselist .a-cell h2 {
	/*margin-top:2px;*/
	cursor:default;
	float:right;
	text-align:right;
	display:inline-block;
	color:#333399;
	padding-right:1em;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 p {
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:14px;
	cursor:default;
	clear:left;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap {
	height:20px;
	/*background:url() repeat-x #4877DC ;*/
	background-color:#d2d2ff;
	border:transparent solid 1px;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap:hover {
	background-color: #8888ff;
	border-color:#00C;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap:hover h1 {
	color:#fff;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap:hover h2 {
	color:#fff;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .text {
	border-width:0px 1px 1px 1px;
	border-color:#ccc;
	border-style:dotted;
	background-color:#fefeff;
	height:auto;
	margin:0px 1px 0px;
	padding:0px 1.5em 1.5em;
	display:none;
}
.a-main-content-wrapper_main-page-caselist .menu {
	float:left;
	background-color:#fff;
	width:185px;
	height:350px;
}
.a-main-content-wrapper_main-page-caselist .menu ul{
	margin:15px auto 15px;
	list-style:none;
	padding:0px;
}
.a-main-content-wrapper_main-page-caselist .menu ul a{
	border:transparent 1px solid ;
	display:block;
	text-align:center;
}
.a-main-content-wrapper_main-page-caselist .menu ul a:hover{
	color:#fff;
	background-color:#8888ff;
	border-color:#00c;
}
.a-main-content-wrapper_main-page-caselist .menu ul li{
	margin:0px;
	padding:0px;
}

</style>
<div class="a-main-content-wrapper_main-page-caselist .a-main-content-wrapper_no-menu-caselist ">
  <div class="a-cell a-cell_1">
    <div class="menu"> 
    <ul>
    <li><a href="?hd=case"       >显示全部</a></li>
    <li><a href="?hd=case&y=2011">2011 年</a></li>
    <li><a href="?hd=case&y=2010">2010 年</a></li>
    <li><a href="?hd=case&y=2009">2009 年</a></li>
    <li><a href="?hd=case&y=2008">2008 年</a></li>
    <li><a href="?hd=case&y=2007">2007 年</a></li>
    <li><a href="?hd=case&y=2006">2006 年</a></li>
    </ul>
    </div>
    <ul class="case-ul">
      <?
				$sn = $_GET['s'];
				foreach ($news as $value){
					/*if ($_GET['y']){if ($value['t']!=$_GET['y']) continue;}*/
					echo ('<li><div class="cap" id="'.$value['d'].'-'. $value['n'] .'" >');
					echo ('<h1>' . $value['t'] . '</h1>');
					/*if ($value['ft']!=$value['lt']){
						echo ('<h2>' . $value['p'] . '[' . $value['ft'] . '&mdash;' . $value['lt'] . ']' . '</h2>');
					}else{
						echo ('<h2>' . $value['p'] . '[' . $value['lt'] . ']' . '</h2>');
					}*/
					echo ('</div>');
					echo ('<div class="text"><p>' . $value['m'] . '</p></div></li>');
					}
			?>
    </ul>
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".cap").click(function(){
		$(this).siblings(".text").toggle();
		/*$(this).css({"background-color":"#bbb"});*/
	});
	$("#<? echo($sn) ?>").siblings(".text").toggle();
		/*$(this).css({"background-color":"#bbb"});*/
});
</script>